c# shorthand if statement without else

60

c# shorthand if statement without else -

someBool = (someStatement) ? true : someBool;

c# shorthand if statement without else -

if (someStatement)
{
    someBool = true;
}

Comments

Submit
0 Comments